package com.yang.sms.service;

import com.baomidou.mybatisplus.service.IService;
import com.yang.sms.entity.SmsTaskDetail;
import com.yang.sms.enums.SmsTaskDetailEnum;

import java.util.List;

/**
* @author Billyang
* @description 针对表【sms_task_detail(短信发送任务明细)】的数据库操作Service
* @createDate 2024-09-26 17:56:28
*/
public interface SmsTaskDetailService extends IService<SmsTaskDetail> {

    Integer updateStatusByStatus(SmsTaskDetailEnum.Status toStatus, String remark, Integer id,
                                 SmsTaskDetailEnum.Status fromStatus);

    List<Integer> select4PreTimeSend(SmsTaskDetailEnum.Status status, int limit);

    Integer updateRemark(String remark, Integer id);

    Integer updateContentById(String content, Integer id);

    Integer updateSendSuccessStatus(SmsTaskDetailEnum.Status toStatus, String remark, Integer id);

    Integer updateStatusRemark(SmsTaskDetailEnum.Status toStatus, String remark, Integer id);
}
